<a class="lienAjax" title="Retour" href="camera?threadId=<?php echo $this->threadId;?>" target="content"><img src="imgweb/door_out.png" /> Retour</a>

<center>
    <?php echo $this->visu;?>
</center>

<form id="listeSnapshots" class="selectionAjax" action="snapshots/selection" target="content" method="post">    
    <input type="hidden" name="threadId" value="<?php echo $this->threadId; ?>" />
    <input type="hidden" name="selectedDate" value="<?php echo $this->selectedDate; ?>" />
    
    <table id="listeSequencesSelection">
        <a class="lienAjax" title="Refresh" href="snapshots?threadId=<?php echo $this->threadId; ?>&selectedDate=<?php echo $this->selectedDate; ?>&selectedSnapshot=<?php echo $this->selectedSnapshot;?>" target="content"><img src="imgweb/refresh.png" /> Rafraichir la liste</a><br />

        Pour la selection : <a class="checkAllAjax" href="/" target="listeSnapshots"><img src="imgweb/case_coche.png"/> Tout</a>&nbsp;&nbsp;&nbsp;&nbsp;
        Action : <input type="submit" class="supprimSubmitAjax" name="deleteChecked" value="Supprimer" src="imgweb/film_delete.png" /><br />
    </table>        
    <table id="listeSequences">   
        <th><a class="lienAjax" href="snapshots?threadId=<?php echo $this->threadId; ?>" target="content">Dates</a></th>
        <?php   
            $check = 0;
            $i=0;      
            foreach ( $this->snapshotsParDate as $myDate )
            {
                ?>
                <tr <?php if ( $i % 2 == 0 ) echo "class=\"pair\"";else echo "class=\"impair\""?>>
                    <td class="alignmiddle"><a class="lienAjax" href="snapshots?threadId=<?php echo $this->threadId; ?>&selectedDate=<?php echo $myDate['date']; ?>" target="content"><?php echo $myDate['date']; ?></a></td>
                    <td>
                        <table>
                            <tr>
                <?php
                $i++;
                $col = 0;     
                foreach ( $myDate['data'] as $mySnapshot )
                {
                    if ( ($col > 0) && ($col % 6 == 0) )
                    {
                    ?>
                    </tr><tr>
                    <?php
                    }
                    ?>
                    <td>
                        <a class="lienAjax" href="snapshots?threadId=<?php echo $this->threadId; ?>&selectedSnapshot=<?php echo $mySnapshot['path'];?>&selectedDate=<?php echo $this->selectedDate; ?>" target="content">
                            <img class="vignette" src="<?php echo $mySnapshot['mini'];?>" width="50" height="50" class="<?php echo $mySnapshot['class'];?>"/>
                        </a><br />
                        <?php echo $mySnapshot['heure'];?>                                        
                    </td>
                    <td>
                        <a class="supprimAjax" title="Supprimer" href="snapshots/delete?threadId=<?php echo $this->threadId; ?>&selectedSnapshot=<?php echo $mySnapshot['path'];?>&selectedDate=<?php echo $this->selectedDate; ?>" target="content"><img src="imgweb/picture_delete.png" /></a><br />
                        <input type="checkbox" name="checkbox<?php echo $check;?>" value="<?php echo $mySnapshot['path'];?>"/>
                    </td>
                    <?php
                    $col++; 
                    $check++;
                }   
                ?>
                            </tr>
                        </table>
                    </td>
                </tr>
                <?php
            }
        ?>    
    </table>
    <input type="hidden" name="fileCount" value="<?php echo $check?>" />
</form>